const router = require('koa-router')()

const user = require('./admin/user')
const focus = require('./admin/focus')
const newscate = require('./admin/newscate')

//配置admin的子路由 层级路由
router.get('/', (ctx) => {
  ctx.body = '后台管理系统首页 '
})

router.use('/user', user)
router.use('/focus', focus)
router.use('/newscate', newscate)

module.exports = router.routes()